package com.hc.java.jvm;//package com.hc;

/**
 * top
 * ps H ..
 * jstack
 *
 * @author huangchao E-mail:fengquan8866@163.com
 * @version 创建时间：2024/6/7 11:18
 */
public class 排查CPU飚高 {
    public static void main(String[] args) {
        new Thread(() -> {
            while (true) {
                System.out.println(1);
            }
        }, "t1").start();
        new Thread(() -> {
            try {
                Thread.sleep(1000000L);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }, "t2").start();
    }
}
